#include<stdio.h>

int main(void)
{
	int a,b,year=0;
	scanf("%d%d",&a,&b);
	while(a<=b)
	{
		year++;
		a*=3;
		b*=2;
	}
	
	printf("%d",year);
	
	return 0;
}
